﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using PefStudio.StartUp;

namespace PefStudio.Windows
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    [Export(Bootstrapper.MainWindowContract, typeof(Application))]
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            //Must programming load resources when MEF
            Resources.Source = new Uri("pack://application:,,,/Fluent;Component/Themes/Office2010/Silver.xaml");

            MainWindow = Bootstrapper.Container.GetExportedValue<Window>(Bootstrapper.MainWindowContract);
            MainWindow.Show();
        }
    }
}
